package com.tongji.diy.view
{
	/**
	 * 
	 * @author xxj
	 * 
	 */
	import com.tongji.diy.model.RoomChildModel;
	import com.tongji.diy.model.RoomChildVO;
	
	import org.robotlegs.mvcs.Mediator;
	
	public class RoomChildPanelMediator extends Mediator
	{
		[Inject]
		public var view:RoomChildPanel;
		
		[Inject]
		public var model:RoomChildModel;
		
		override public function onRegister():void
		{
			//model.roomChild.addItem(new RoomChildVO("assets/model/desk01.png","assets/model/desk01.DAE"));
			model.roomChild.addItem(new RoomChildVO("assets/model/bed01.png","assets/model/bed01.DAE"));
			//model.roomChild.addItem(new RoomChildVO("assets/model/bed02.png","assets/model/bed02.DAE"));
			model.roomChild.addItem(new RoomChildVO("assets/model/cabinet01.png","assets/model/cabinet01.DAE"));
			//model.roomChild.addItem(new RoomChildVO("assets/model/holistic_kitchen01.png","assets/model/holistic_kitchen01.DAE"));
			model.roomChild.addItem(new RoomChildVO("assets/model/cabinet02.png","assets/model/cabinet02.DAE"));
			//model.roomChild.addItem(new RoomChildVO("assets/model/cloesttool01.png","assets/model/cloesttool01.DAE"));
			model.roomChild.addItem(new RoomChildVO("assets/model/single_sofa01.png","assets/model/single_sofa01.DAE"));
			model.roomChild.addItem(new RoomChildVO("assets/model/muliti_sofa01.png","assets/model/muliti_sofa01.DAE"));
			//model.roomChild.addItem(new RoomChildVO("assets/model/muliti_sofa02.png","assets/model/muliti_sofa02.DAE"));
			model.roomChild.addItem(new RoomChildVO("assets/model/TV01.png","assets/model/TV01.DAE"));
			model.roomChild.addItem(new RoomChildVO("assets/model/chair01.png","assets/model/chair01.DAE"));
			//model.roomChild.addItem(new RoomChildVO("assets/model/chair02.png","assets/model/chair02.DAE"));
			model.roomChild.addItem(new RoomChildVO("assets/model/side_table01.png","assets/model/side_table01.DAE"));
			//model.roomChild.addItem(new RoomChildVO("assets/model/desk02.png","assets/model/desk02.DAE"));
			model.roomChild.addItem(new RoomChildVO("assets/model/desk03.png","assets/model/desk03.DAE"));
			model.roomChild.addItem(new RoomChildVO("assets/model/other01.png","assets/model/other01.DAE"));
			//model.roomChild.addItem(new RoomChildVO("assets/model/cabinet03.png","assets/model/cabinet03.DAE"));
			model.roomChild.addItem(new RoomChildVO("assets/model/cabinet04.png","assets/model/cabinet04.DAE"));
			//model.roomChild.addItem(new RoomChildVO("assets/model/muliti_sofa03.png","assets/model/muliti_sofa03.DAE"));
			//model.roomChild.addItem(new RoomChildVO("assets/model/TV02.png","assets/model/TV02.DAE"));
			//model.roomChild.addItem(new RoomChildVO("assets/model/wash_blow01.png","assets/model/wash_blow01.DAE"));
			model.roomChild.addItem(new RoomChildVO("assets/model/chair03.png","assets/model/chair03.DAE"));
			model.roomChild.addItem(new RoomChildVO("assets/model/bedstand01.png","assets/model/bedstand01.DAE"));
			model.roomChild.addItem(new RoomChildVO("assets/model/fireplace01.png","assets/model/fireplace01.DAE"));
			model.roomChild.addItem(new RoomChildVO("assets/model/babybed01.jpg","assets/model/babybed01/babybed01.DAE"));
			model.roomChild.addItem(new RoomChildVO("assets/model/23.png","assets/model/ceiling_light.DAE"));
			model.roomChild.addItem(new RoomChildVO("assets/model/oil_painting01.jpg","assets/model/oil_painting01.DAE"));
			model.roomChild.addItem(new RoomChildVO("assets/model/smallair/smallair01/texture0.jpg","assets/model/smallair/smallairconditioner01.dae"));
			//model.roomChild.addItem(new RoomChildVO("assets/model/light01.jpg","assets/model/light01/light01.dae"));
			model.roomChild.addItem(new RoomChildVO("assets/model/laptop01.jpg","assets/model/laptop01/laptop01.dae"));
			model.roomChild.addItem(new RoomChildVO("assets/model/dustbin01.jpg","assets/model/dustbin01/dustbin01.dae"));
			//方向有问题
			model.roomChild.addItem(new RoomChildVO("assets/model/desk04.png","assets/model/wooddesk02.dae"));
			model.roomChild.addItem(new RoomChildVO("assets/model/bookcase01.png","assets/model/bookcase02/bookcase02.dae"));
			
			
			view.dataProvider = model.roomChild;
		}
	}
}